DrillShape AddJumpAndDrillPoint

Adds a Jump and drill point to the drill shape.

Overloads

public void AddJumpAndDrillPoint(Point3D point)
public void AddJumpAndDrillPoint(float x, float y, float z)

 

Parameters

Point3D point A reference to a Point3D class
float x X coordinate of the point
float y Y coordinate of the point
float z Z coordinate of the point

 

Exceptions

InvalidOperationException A Jump and drill pattern should be defined before adding a Jump and Drill point

 

Example

Copy
 bool pulsemode = false;
 JumpAndDrillShapePattern jumpandDrillPattern = new JumpAndDrillShapePattern((float)2.5, (float)2.5, 14, 1, 2, pulsemode);

 // Create a Drill Pulse
 DrillPulse pulse1 = new DrillPulse(2.5f, 2.5f, 5);

 jumpandDrillPattern.AddDrillPulse(pulse1);

 //Create a drill shape.
 DrillShape drillShape = new DrillShape();
 drillShape.SetPattern(jumpandDrillPattern);

 //Add drill Points to the drill shape
 drillShape.AddJumpAndDrillPoint(0, 0, 0);
 drillShape.AddJumpAndDrillPoint(10, 10, 0);
 drillShape.AddJumpAndDrillPoint(20, 20, 0);

 // Add the Drill shape to vector image
 vectorImage.AddDrill(drillShape);